package com.kova.api.common;

public enum ResultEnum {
	
	SUCCESS(0,"成功"),
	FAILED(-1,"失败"),
	IP_ACCESS_ERROR(101,"ip访问受限制"),
	HTTP_CONNECT_ERROR(404,"远程服务异常"),
	SYSTEM_ERROR(500,"系统错误"),
	PARAM_ERROR(4001,"参数不合法"),
	XML_PARSE_ERROR(4002,"xml解析异常"),
	SIGN_ERROR(4003,"签名验证失败"),
	TOKEN_ERROR(4004,"token错误"),
	INVALID_TIMESTAMP_EXPIRED(4005,"过期时间戳请求"),

	REQUEST_LIMIT(4006,"操作过于频繁");


	private int code;
	private String msg;

	private ResultEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}
	public String getMsg() { return msg; }
}
